<%--
  Created by IntelliJ IDEA.
  User: 32714
  Date: 2021/6/29
  Time: 17:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>当前在线用户是${username}</h1>
    <h1>在线人数${fn:length(userList)}人用户列表如下</h1>
    <ul>
        <c:if test="${userList!=null}">
                <c:forEach items="${userList}" var="name">
                    <li>${name}</li>
                </c:forEach>
        </c:if>
    </ul>
<a href="/day16/loginOut">注销</a>
</body>
</html>
